<?php
/**
 * Created by PhpStorm.
 * User: surface
 * Date: 2019/1/11
 * Time: 21:28
 */
namespace app\common\model;

class UserBalance extends Common
{
    protected $name = 'user_balance_log';
    
    protected $insert = ['ctime', 'admin_id'];
   
    public function setCtimeAttr() {
        return time();
    }
    
    public function setAdminIdAttr() {
        $manage = session('manage');
        return $manage['id'];
    }
}
